import Joi from "joi";
export const userSchema = Joi.object({
  account: Joi.string().required().description("账户"),
  password: Joi.string().required().description("密码"),
});

export const userResult = {
  200: Joi.object({ success: Joi.string() }),
};

export const uploadSchema = Joi.object({
  file: Joi.any().meta({ swaggerType: "file" }).description("file"),
  filePath: Joi.string().required().description("文件保存路径"),
});
